package com.example.ui;

import mega.Rss.Reader.MainActivityRss;

import com.androidhive.twitterconnect.MainActivity;

import android.app.TabActivity;
import android.content.Intent;
import android.facebook.connect.FacebookActivity;
import android.os.Bundle;
import android.view.Window;
import android.view.WindowManager;
import android.widget.TabHost;

public class SuperStart extends TabActivity {
	private TabHost mTabHost;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);

		
		super.onCreate(savedInstanceState);
		setContentView(R.layout.super_main);

		mTabHost = getTabHost();
		TabHost.TabSpec spec;
		Intent intent;

		// MAIN
		intent = new Intent(this, Welcome.class);
		spec = mTabHost.newTabSpec("Welcome").setIndicator("Welcome")
				.setContent(intent);
		mTabHost.addTab(spec);
		mTabHost.setCurrentTab(0);
		
		// FACEBOOK
		intent = new Intent(this, FacebookActivity.class);
		spec = mTabHost.newTabSpec("Facebook").setIndicator("Facebook")
				.setContent(intent);
		mTabHost.addTab(spec);

		// RSS
		intent = new Intent(this, MainActivityRss.class);
		spec = mTabHost.newTabSpec("Rss").setIndicator("Rss")
				.setContent(intent);
		mTabHost.addTab(spec);
		
		// TWITTER
				intent = new Intent(this, MainActivity.class);
				spec = mTabHost.newTabSpec("Twitter").setIndicator("Twitter")
						.setContent(intent);
				mTabHost.addTab(spec);
				mTabHost.setCurrentTab(0);

	}

	/*
	 * @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the
	 * menu; this adds items to the action bar if it is present.
	 * getMenuInflater().inflate(R.menu.super_start, menu); return true; }
	 */

}
